package com.rgs.se.bloom;

/**
 * @author Ren Gaoshuai
 * @ClassName TestMain
 * @Description TODO
 * @date 2021-10-09 15:17
 **/
public class TestMain {
    public static void main(String[] args) {

        String value1 = "https://javaguide.cn/";
        String value2 = "https://github.com/Snailclimb";

        MyBloomFilter filter = new MyBloomFilter();

        System.out.println("是否包含value1:"+filter.contains(value1));
        System.out.println("是否包含value2:"+filter.contains(value2));

        filter.add(value1);
        filter.add(value2);

        System.out.println("是否包含value1:"+filter.contains(value1));
        System.out.println("是否包含value2:"+filter.contains(value2));


    }
}
